﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Labaratornaya1
{

    class Program
    {
        static void Main(string[] args)
        {
            Person pers1 = new Person();
            Exam exam1 = new Exam();
            Console.WriteLine(pers1.ToShortString());
            Console.WriteLine(exam1.ToString());
            int nrow=0, ncolumn=0,i=0;
            Console.WriteLine("Введите количество строк и стоблцов:");
            string size = Console.ReadLine();
            string [] split = size.Split(new Char [] {' ', ',', '.', ':' });
            foreach (string s in split)
            {
                if (s.Trim() != "")
                    if (i == 0)
                    {
                        nrow = Convert.ToInt32(s);
                        i++;
                    }
                    else
                    {
                        ncolumn = Convert.ToInt32(s);
                    }
            }
            Console.WriteLine("Stroki: {0} Stolbci: {1} FinalSize:{2}", nrow, ncolumn, nrow*ncolumn);
            Console.ReadKey();
        }
    }
}
